﻿using System;

namespace Ucto.ToExcelConvertor.Tests
{
	public class Factory
	{
		public IDataReader GetDataReader(string path)
		{
			return DataReader.Open(path);
		}

		public IDataReader GetDataReader()
		{
			return this.GetDataReader("Mocks\\stext.txt");
		}

		public ExcelSheetMock GetExcelSheetMock()
		{
			return new ExcelSheetMock();
		}

		public DataReaderMock GetDataReaderMock(int count)
		{
			return new DataReaderMock(count);
		}

		public ValueToExcelHandler GetValueToExcelHandler(int columnCount, IExcelSheet sheet)
		{
			return new ValueToExcelHandler(columnCount, sheet);
		}
	}
}
